package com.roowoo.plateform.feign;

import com.roowoo.plateform.fallback.FeignUserServiceFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
/***
 * @project: spring-cloud
 * @package: com.roowoo.plateform.service
 * @description:
 * @author: kyrie
 * @mail: 18654169290@163.com
 * @createDate: 2022/3/17 10:40
 */
@FeignClient(name = "user-service", fallback = FeignUserServiceFallback.class)
public interface FeignUserService {

    @GetMapping("/getUserInfo")
    String getUserInfo(@RequestParam("userId") String userId);
}
